home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / we-30d.zip / RECENT.TX_ < prev    next >
Text File  |  1993-10-05  |  7KB  |  191 lines

  1. Note:  In this current release....
  2.   
  3.        NT Versions
  4.            File Commands only support the 8.3 FAT file system 
  5.            Do not attempt to use commands like FileCopy, FileOpen
  6.            etc with NTFS or HPFS partitions  
  7.  
  8.            OLE 2.0 automation not currently working with NT versions.
  9.  
  10.       WIN16 Versions - All features should be functional  
  11.  
  12.  
  13. debugdata(String,String)
  14.         Dumps data via the Windows OutputDebugString to your default
  15.         destination
  16.     
  17.         a=5
  18.         DebugData("Value of A is",a)
  19.     
  20. winisdos(WindowName)
  21.         Tells whether or not a particular window is a DOS window.  
  22.     
  23.        a=WinIsDOS("Command")
  24.        if a==@TRUE then Message("command.com","is a DOS window")
  25.     
  26. gettickcount(void)
  27.         Returns number of clock ticks since Windows started
  28.         
  29.         Message("Clock Ticks",GetTickCount())
  30.                
  31. getexacttime(void)
  32.         Returns current time in hundredths of a second
  33.         
  34.         Message("Time is",GetExactTime())
  35.         
  36. shellexecute(who,params,workingdir,how,wait)
  37.         Executes programs via the Windows ShellExecute function
  38.         
  39.         ShellExecute("notepad.exe","c:\config.sys","",@NORMAL,@NOWAIT)
  40.                                                       @ZOOMED @WAIT
  41.                                                       @ICON
  42.                                                       @HIDDEN
  43.          
  44. shellprint(program/file ,params,workingdir, how, wait)
  45.         Calls the Windows ShellExecute function to print data. 
  46.         
  47.         ShellPrint("Stuff.txt","",GetDir(),@NORMAL,@NOWAIT)
  48.            
  49.      
  50. objectopen(progidname)
  51.         Creates an Ole Object for Ole Automation to occur.
  52.         See OLECALC.WBT and OLEPOLY.WBT
  53.         
  54.         ObjectName=ObjectOpen("display.ccalc")
  55.  
  56.    
  57. objectclose(ObjectName)
  58.         Terminates an Ole Object.
  59.         See OLECALC.WBT and OLEPOLY.WBT
  60.         
  61. runexit(who,params)
  62.         Exits windows, runs a DOS program, and restarts windows when DOS
  63.         program exits.  Great for running batch files outsize of Windows.
  64.         
  65.         
  66.          
  67.          
  68. regopenkey(handle,string)
  69.         Returns handle to key.  For root key use @REGROOT
  70.                   
  71. regcreatekey(handle,string) 
  72.         Returns handle to key.  For root key use @REGROOT
  73.         
  74. regclosekey(handle)
  75.         Closes a key
  76.           
  77. regdeletekey(handle,string)
  78.         Deletes a key
  79.         
  80. regsetvalue(handle,string,value)
  81.         Sets a value in the reg database
  82.           
  83. regqueryvalue(handle,string)
  84.         Retuns valuse in a string
  85.         
  86. regquerykey(handle,index)
  87.         Returns name string at index position  (SDK Guys...see RegEnumKey)  
  88.         
  89.         
  90.         
  91.      
  92. environset(name,value)
  93.         Changes LOCAL Environment variables  (Also see Environment in manual)
  94.         Does not increase environment size, so to add new values, you must
  95.         delete something first.
  96.         
  97.         Environset("DUMMY","")      ; Free up some space first
  98.         EnvironSet("FLAGCITY","-a-b-c-d-e /4/5 -Fc")
  99.    
  100. runenviron (who,params,how,wait)
  101.         Launches a program and has it inheirit the current environment as set
  102.         with the environset command.
  103.   
  104. exetypeinfo(EXENAME)
  105.         Returns interger describing type of EXE file specified
  106.         
  107.         a=ExeTypeInfo("notepad.exe")
  108.         
  109.         0=Not an EXE file
  110.         1=DOS
  111.         2=Windows
  112.         3=NT, etc....not implemented yet.  Have they settled on the NT EXE
  113.               file format yet???
  114.   
  115. envitemize()
  116.         Returns a \n delimited list of the current environment
  117.         
  118.         Message("Da Environment is",envitemize())
  119.          
  120.         
  121.  
  122.   KeyToggleGet(@key)    returns the status of a toggle key, either @ON or @OFF
  123.   KeyToggleSet(@key,value) returns old state of key and sets new state
  124.  
  125.     @key may be one of the following:
  126.             @CAPSLOCK
  127.             @NUMLOCK
  128.             @SCROLLLOCK
  129.     value may be @ON or @OFF
  130.     
  131.     
  132. DllCall(dllname,entrypointname,parameters)
  133.  
  134.     as in:
  135.         Answer=DllCall("MYOWN.DLL","DoitToit","123 4567 'A Few Params'") 
  136.         
  137.         The DLL entrypoint must be written per:
  138.         
  139.         Win16
  140.            GLOBALHANDLE FAR PASCAL DoitToit(HWND,LPSTR)
  141.         WINNT
  142.            GLOBALHANDLE DoitToit(HWND,LPSTR)
  143.         
  144.          Any return value by the DLL must be in a szString format in
  145.          a GlobalMemory object.  The Object must be unlocked when
  146.          the the DLL returns.  The DllCall processor will lock the object,
  147.          transfer the contents to variable string storage, unlock the
  148.          object and GlobalFree the object.  It is recommended that
  149.          restraint be used in returning large strings.  4K should be 
  150.          considered a maximum.  16K will be very unreliable (3096 out of
  151.          memory for string storage).  32k will always fail.  Numeric
  152.          responses must be converted to ascii strings.   There should be
  153.          a sample DLL build for this by the time we really ship.
  154.          
  155.             
  156. IconReplace("FILENAME.EXE","ICONFILE.ICO")
  157.     Icon replace will preform surgery on an EXE file and replace the first icon in the EXE file
  158.     with the icon in the ICO file.  The icon in the ICO file must be the same size or smaller
  159.     then the icon in EXE file.  It is suggested that due caution be used when using this command
  160.     as the following conditions may occur:
  161.         1) EXE file might become damaged and unable to run.  This is especially true of
  162.            some programs that checksum themselves to verify the EXE.  Keep backups.
  163.         2) System anti-virus tools might detect the alteration of an EXE file and complain.
  164.            If this is true, then either the anti-virus program must be disabled, or another
  165.            workaround must be used.  Some Anti-virus programs allow the specification of a
  166.            "trusted" program - the trusted feature may be used with due caution.
  167.  
  168.  
  169.  
  170. SendKeysTo("WindowName","Sendkeystring")
  171.     Similiar to SendKey, but the window "WindowName" will be activated before sending any keys.
  172.  
  173.  
  174.  
  175. SendMenusTo("WindowName","MenuName") 
  176.     Will activate "WindowName", Search its menus for "MenuName", and post the appropriate WIndows
  177.     windows message for the menu operation.
  178.  
  179.               
  180. New parameters for the FileOpen function as in
  181.  
  182.      FileOpen("FileName",option)
  183.      
  184.           where FileName is the filename or the "Named Pipe" name
  185.           option can be READ WRITE APPEND or PIPE
  186.           
  187.           APPEND is a WRITE with the file pointer set to the end of the file
  188.           PIPE allows communication with a named pipe set up by anotehr process.
  189.           This PIPE is a client side only pipe.          
  190.  
  191.